//
//  UILabel+Theme.m
//  夜间模式
//
//  Created by Burn on 2018/10/21.
//  Copyright © 2018年 buren. All rights reserved.
//

#import "UILabel+Theme.h"
#import "UIView+Theme.h"
#import "ThemeManager.h"

#import <objc/runtime.h>
@implementation UILabel (Theme)


- (void)changeColor{
    switch ([self.type integerValue]) {
        case ThemeTypeNormal:
            self.textColor = [ThemeManager shareInstance].themeNormalColor;
            break;
        case ThemeTypeBlack:
            self.textColor = [ThemeManager shareInstance].themeBlackColor;
            break;
        case ThemeTypeRed:
            self.textColor = [ThemeManager shareInstance].themeRedColor;
            break;
        case ThemeTypeClear:
            self.textColor = [ThemeManager shareInstance].themeClearColor;
            break;
            
        default:
            break;
    }
}




- (void)initTextColor{
    switch ([self.type integerValue]) {
        case ThemeTypeNormal:
            self.textColor = [ThemeManager shareInstance].themeNormalColor;
            break;
        case ThemeTypeBlack:
            self.textColor = [ThemeManager shareInstance].themeBlackColor;
            break;
        case ThemeTypeRed:
            self.textColor = [ThemeManager shareInstance].themeRedColor;
            break;
        case ThemeTypeClear:
            self.textColor = [ThemeManager shareInstance].themeClearColor;
            break;
            
        default:
            break;
    }
}




@end
